package 设计模式.创建者模式.单例模式.饿汉式_静态成员变量;

/**
 * @Author: kirito
 * @Date: 2024/3/8 10:54
 * @Description: 饿汉式静态成员变量
 */

public class Singleton {
    private Singleton() {
    }

    private static Singleton instance = new Singleton();

    public static Singleton getInstance() {
        return instance;
    }
}
